import random

participants = []

print("❤️✿✿ヽ(°▽°)ノ✿️简易抽奖系统Σ(⊙▽⊙")
while True:
    name = input("输入参与者的姓名(输入’ok’结束) :")
    if name == "ok":
        break

    if name:
        participants.append(name)

print(f"\n参与者列表:{participants}")

if participants:
    count = int(input("要抽取几人？"))

    if count <= len(participants):
        winners = random.sample(participants, count)
        print(f"\n中奖者是:{','.join(winners)}")
    else:
        print("抽奖人数不能超过总人数")
else:
    print("没有参与者")


